<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen; http://apigen.org" />

	<title>Class Nette\Application\PresenterRequest</title>

	<link rel="stylesheet" href="resources/style.css?v=2011071314" type="text/css" media="all" />
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="Nette Framework API documentation" />
	<script type="text/javascript" src="resources/combined.js"></script>
	<script type="text/javascript" src="allclasses.js"></script>
</head>

<body>
<div id="left">
	<a href="allclasses.html">All Classes</a>

	<h3>Namespaces</h3>
	<ul>
		<li><a href="namespace-none.html">none</a>
		</li>
		<li><a href="namespace-Nette.html">Nette</a>
		</li>
		<li class="active"><a href="namespace-Nette.Application.html">Nette\Application</a>
		</li>
		<li><a href="namespace-Nette.Caching.html">Nette\Caching</a>
		</li>
		<li><a href="namespace-Nette.Collections.html">Nette\Collections</a>
		</li>
		<li><a href="namespace-Nette.Config.html">Nette\Config</a>
		</li>
		<li><a href="namespace-Nette.Forms.html">Nette\Forms</a>
		</li>
		<li><a href="namespace-Nette.IO.html">Nette\IO</a>
		</li>
		<li><a href="namespace-Nette.Loaders.html">Nette\Loaders</a>
		</li>
		<li><a href="namespace-Nette.Mail.html">Nette\Mail</a>
		</li>
		<li><a href="namespace-Nette.Reflection.html">Nette\Reflection</a>
		</li>
		<li><a href="namespace-Nette.Security.html">Nette\Security</a>
		</li>
		<li><a href="namespace-Nette.Templates.html">Nette\Templates</a>
		</li>
		<li><a href="namespace-Nette.Web.html">Nette\Web</a>
		</li>
		<li><a href="namespace-PHP.html">PHP</a>
		</li>
	</ul>

	<hr />

	<h3>Classes</h3>

	<ul>
		<li><a href="Nette.Application.AppForm.html">AppForm</a></li>
		<li><a href="Nette.Application.Application.html">Application</a></li>
		<li><a href="Nette.Application.CliRouter.html">CliRouter</a></li>
		<li><a href="Nette.Application.Control.html">Control</a></li>
		<li><a href="Nette.Application.DownloadResponse.html">DownloadResponse</a></li>
		<li><a href="Nette.Application.ForwardingResponse.html">ForwardingResponse</a></li>
		<li><a href="Nette.Application.JsonResponse.html">JsonResponse</a></li>
		<li><a href="Nette.Application.Link.html">Link</a></li>
		<li><a href="Nette.Application.MultiRouter.html">MultiRouter</a></li>
		<li><a href="Nette.Application.Presenter.html">Presenter</a></li>
		<li><a href="Nette.Application.PresenterComponent.html">PresenterComponent</a></li>
		<li><a href="Nette.Application.PresenterLoader.html">PresenterLoader</a></li>
		<li class="active"><a href="Nette.Application.PresenterRequest.html">PresenterRequest</a></li>
		<li><a href="Nette.Application.RedirectingResponse.html">RedirectingResponse</a></li>
		<li><a href="Nette.Application.RenderResponse.html">RenderResponse</a></li>
		<li><a href="Nette.Application.Route.html">Route</a></li>
		<li><a href="Nette.Application.SimpleRouter.html">SimpleRouter</a></li>
	</ul>

	<h3>Interfaces</h3>

	<ul>
		<li><a href="Nette.Application.IPartiallyRenderable.html">IPartiallyRenderable</a></li>
		<li><a href="Nette.Application.IPresenter.html">IPresenter</a></li>
		<li><a href="Nette.Application.IPresenterLoader.html">IPresenterLoader</a></li>
		<li><a href="Nette.Application.IPresenterResponse.html">IPresenterResponse</a></li>
		<li><a href="Nette.Application.IRenderable.html">IRenderable</a></li>
		<li><a href="Nette.Application.IRouter.html">IRouter</a></li>
		<li><a href="Nette.Application.ISignalReceiver.html">ISignalReceiver</a></li>
		<li><a href="Nette.Application.IStatePersistent.html">IStatePersistent</a></li>
	</ul>

	<h3>Exceptions</h3>

	<ul>
		<li><a href="Nette.Application.AbortException.html">AbortException</a></li>
		<li><a href="Nette.Application.ApplicationException.html">ApplicationException</a></li>
		<li><a href="Nette.Application.BadRequestException.html">BadRequestException</a></li>
		<li><a href="Nette.Application.BadSignalException.html">BadSignalException</a></li>
		<li><a href="Nette.Application.ForbiddenRequestException.html">ForbiddenRequestException</a></li>
		<li><a href="Nette.Application.InvalidLinkException.html">InvalidLinkException</a></li>
		<li><a href="Nette.Application.InvalidPresenterException.html">InvalidPresenterException</a></li>
	</ul>
</div>

<div id="right">
	<form action="http://www.google.com/cse" id="search" onsubmit="if(this.q.value.indexOf('more:')==-1)this.q.value+=' more:api'">
		<input type="hidden" name="cx" value="011549293477758430224:vxofa9ufnhc" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" class="text" /><input type="submit" value="Search" />
	</form>

<div id="navigation">
	<ul>
		<li><a href="overview.html" title="Summary of all namespaces">Overview</a></li>
		<li><a href="namespace-Nette.Application.html" title="Summary of Nette\Application">Namespace</a></li>
		<li class="active">Class</li>
		<li><a href="elements.html">Elements</a></li>
	</ul>
</div>

<div id="content">
	<div id="classSummary">
		<p>namespace <a href="namespace-Nette.Application.html">Nette\Application</a></p>

		<h1>Class PresenterRequest</h1>

		<div class="classDescription">
		
<p>Presenter request. Immutable object.</p>

		</div>

		<dl class="tree">
			<dd style="padding-left:0px">
				<a href="Nette.Object.html">Nette\Object</a>
				
			</dd>
			<dd style="padding-left:30px">
				<img src="resources/inherit.gif" alt="extended by" />
				<a href="Nette.FreezableObject.html">Nette\FreezableObject</a>
				
			</dd>
			<dd style="padding-left:60px">
				<img src="resources/inherit.gif" alt="extended by" />
<b>Nette\Application\PresenterRequest</b>				
			</dd>
		</dl>



		<div class="classInfo">
			<b>Final Class</b><br />
				<b>Author:</b> David Grudl<br />
			<b>Located at</b> <a href="source-Application.PresenterRequest.php.html#18">/Application/PresenterRequest.php</a><br />
		</div>
	</div>


	<div id="methodSummary">
		<table class="summary">
		<caption>Method Summary</caption>
		<tr data-order="1 __construct" id="___construct">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___construct">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#59" title="go to source code"><b>__construct</b></a>(
					string
					<var>$name</var>, 
					string
					<var>$method</var>, 
					array
					
					<var>$params</var>, 
					array
					
					<var>$post</var> = <span class="php-keyword1">array</span> (
), 
					array
					
					<var>$files</var> = <span class="php-keyword1">array</span> (
), 
					array
					
					<var>$flags</var> = <span class="php-keyword1">array</span> (
)
			)</code>

			<div class="short">
				
			</div>

			<div class="detailed">
				


					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string fully qualified presenter name (module:module:presenter)<br />
						<code>$method</code> string method<br />
						<code>$params</code> array variables provided to the presenter usually via URL<br />
						<code>$post</code> array variables provided to the presenter via POST<br />
						<code>$files</code> array all uploaded files<br />
						<code>$flags</code> <br />
					</div>



			</div>
			</td>
		</tr>
		<tr data-order="1 setPresenterName" id="_setPresenterName">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Application.PresenterRequest.html">PresenterRequest</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_setPresenterName">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#78" title="go to source code"><b>setPresenterName</b></a>(
					string
					<var>$name</var>
			)</code>

			<div class="short">
				
<p>Sets the presenter name.</p>

			</div>

			<div class="detailed">
				
<p>Sets the presenter name.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Application.PresenterRequest.html">PresenterRequest</a> provides a fluent interface</div>


			</div>
			</td>
		</tr>
		<tr data-order="1 getPresenterName" id="_getPresenterName">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				string
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_getPresenterName">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#92" title="go to source code"><b>getPresenterName</b></a>(
			)</code>

			<div class="short">
				
<p>Retrieve the presenter name.</p>

			</div>

			<div class="detailed">
				
<p>Retrieve the presenter name.</p>




					<h4>Returns</h4>
					<div class="smallList">string </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 setParams" id="_setParams">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Application.PresenterRequest.html">PresenterRequest</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_setParams">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#103" title="go to source code"><b>setParams</b></a>(
					array
					
					<var>$params</var>
			)</code>

			<div class="short">
				
<p>Sets variables provided to the presenter.</p>

			</div>

			<div class="detailed">
				
<p>Sets variables provided to the presenter.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$params</code> array <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Application.PresenterRequest.html">PresenterRequest</a> provides a fluent interface</div>


			</div>
			</td>
		</tr>
		<tr data-order="1 getParams" id="_getParams">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				array
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_getParams">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#117" title="go to source code"><b>getParams</b></a>(
			)</code>

			<div class="short">
				
<p>Returns all variables provided to the presenter (usually via URL).</p>

			</div>

			<div class="detailed">
				
<p>Returns all variables provided to the presenter (usually via URL).</p>




					<h4>Returns</h4>
					<div class="smallList">array </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 setPost" id="_setPost">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Application.PresenterRequest.html">PresenterRequest</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_setPost">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#128" title="go to source code"><b>setPost</b></a>(
					array
					
					<var>$params</var>
			)</code>

			<div class="short">
				
<p>Sets variables provided to the presenter via POST.</p>

			</div>

			<div class="detailed">
				
<p>Sets variables provided to the presenter via POST.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$params</code> array <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Application.PresenterRequest.html">PresenterRequest</a> provides a fluent interface</div>


			</div>
			</td>
		</tr>
		<tr data-order="1 getPost" id="_getPost">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				array
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_getPost">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#142" title="go to source code"><b>getPost</b></a>(
			)</code>

			<div class="short">
				
<p>Returns all variables provided to the presenter via POST.</p>

			</div>

			<div class="detailed">
				
<p>Returns all variables provided to the presenter via POST.</p>




					<h4>Returns</h4>
					<div class="smallList">array </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 setFiles" id="_setFiles">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Application.PresenterRequest.html">PresenterRequest</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_setFiles">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#153" title="go to source code"><b>setFiles</b></a>(
					array
					
					<var>$files</var>
			)</code>

			<div class="short">
				
<p>Sets all uploaded files.</p>

			</div>

			<div class="detailed">
				
<p>Sets all uploaded files.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$files</code> array <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Application.PresenterRequest.html">PresenterRequest</a> provides a fluent interface</div>


			</div>
			</td>
		</tr>
		<tr data-order="1 getFiles" id="_getFiles">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				array
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_getFiles">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#167" title="go to source code"><b>getFiles</b></a>(
			)</code>

			<div class="short">
				
<p>Returns all uploaded files.</p>

			</div>

			<div class="detailed">
				
<p>Returns all uploaded files.</p>




					<h4>Returns</h4>
					<div class="smallList">array </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 setMethod" id="_setMethod">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Application.PresenterRequest.html">PresenterRequest</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_setMethod">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#178" title="go to source code"><b>setMethod</b></a>(
					string
					<var>$method</var>
			)</code>

			<div class="short">
				
<p>Sets the method.</p>

			</div>

			<div class="detailed">
				
<p>Sets the method.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$method</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Application.PresenterRequest.html">PresenterRequest</a> provides a fluent interface</div>


			</div>
			</td>
		</tr>
		<tr data-order="1 getMethod" id="_getMethod">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				string
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_getMethod">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#191" title="go to source code"><b>getMethod</b></a>(
			)</code>

			<div class="short">
				
<p>Returns the method.</p>

			</div>

			<div class="detailed">
				
<p>Returns the method.</p>




					<h4>Returns</h4>
					<div class="smallList">string </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 isMethod" id="_isMethod">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				bool
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_isMethod">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#202" title="go to source code"><b>isMethod</b></a>(
					string
					<var>$method</var>
			)</code>

			<div class="short">
				
<p>Checks if the method is the given one.</p>

			</div>

			<div class="detailed">
				
<p>Checks if the method is the given one.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$method</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">bool </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 isPost" id="_isPost">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				bool
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_isPost">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#214" title="go to source code"><b>isPost</b></a>(
			)</code>

			<div class="short">
				
<p>Checks if the method is POST.</p>

			</div>

			<div class="detailed">
				
<p>Checks if the method is POST.</p>




					<h4>Returns</h4>
					<div class="smallList">bool </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 setFlag" id="_setFlag">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Application.PresenterRequest.html">PresenterRequest</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_setFlag">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#225" title="go to source code"><b>setFlag</b></a>(
					string
					<var>$flag</var>, 
					bool
					<var>$value</var> = <span class="php-keyword1">true</span>
			)</code>

			<div class="short">
				
<p>Sets the flag.</p>

			</div>

			<div class="detailed">
				
<p>Sets the flag.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$flag</code> string <br />
						<code>$value</code> bool <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Application.PresenterRequest.html">PresenterRequest</a> provides a fluent interface</div>


			</div>
			</td>
		</tr>
		<tr data-order="1 hasFlag" id="_hasFlag">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				bool
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_hasFlag">#</a>
			<code class="nowrap">
				<a href="source-Application.PresenterRequest.php.html#240" title="go to source code"><b>hasFlag</b></a>(
					string
					<var>$flag</var>
			)</code>

			<div class="short">
				
<p>Checks the flag.</p>

			</div>

			<div class="detailed">
				
<p>Checks the flag.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$flag</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">bool </div>


			</div>
			</td>
		</tr>

		</table>
	</div>


	<h2>Methods Inherited From <a href="Nette.FreezableObject.html#methodSummary">Nette\FreezableObject</a></h2>
	<div class="box"><code>
		<a href="Nette.FreezableObject.html#_freeze">freeze()</a>, <a href="Nette.FreezableObject.html#_isFrozen">isFrozen()</a>, <a href="Nette.FreezableObject.html#___clone">__clone()</a>, <a href="Nette.FreezableObject.html#_updating">updating()</a>
	</code></div>
	<h2>Methods Inherited From <a href="Nette.Object.html#methodSummary">Nette\Object</a></h2>
	<div class="box"><code>
		<a href="Nette.Object.html#_getClass" class="deprecated">getClass()</a>, <a href="Nette.Object.html#_getReflection">getReflection()</a>, <a href="Nette.Object.html#___call">__call()</a>, <a href="Nette.Object.html#___callStatic">__callStatic()</a>, <a href="Nette.Object.html#_extensionMethod">extensionMethod()</a>, <a href="Nette.Object.html#___get">__get()</a>, <a href="Nette.Object.html#___set">__set()</a>, <a href="Nette.Object.html#___isset">__isset()</a>, <a href="Nette.Object.html#___unset">__unset()</a>
	</code></div>


	<div id="constantSummary">
		<table class="summary">
		<caption>Constant Summary</caption>
		<tr data-order="FORWARD" id="FORWARD">
			<td align="right" width="1%"><code><b>FORWARD</b></code></td>
			<td><code><span class="php-quote">'FORWARD'</span></code> <a href="#FORWARD" class="anchor">#</a></td>
		</tr>
		<tr data-order="SECURED" id="SECURED">
			<td align="right" width="1%"><code><b>SECURED</b></code></td>
			<td><code><span class="php-quote">'secured'</span></code> <a href="#SECURED" class="anchor">#</a></td>
		</tr>
		<tr data-order="RESTORED" id="RESTORED">
			<td align="right" width="1%"><code><b>RESTORED</b></code></td>
			<td><code><span class="php-quote">'restored'</span></code> <a href="#RESTORED" class="anchor">#</a></td>
		</tr>
		</table>
	</div>





</div>

	<div id="footer">
		Nette Framework API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</body>
</html>
